import Layout from "@/layout/index.vue";

export const docExchangeRoutes = [
    {
        path: '/document',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['doc:exchange:send:page'],
                path: 'exchange/send/view/:id(\\d+)',
                component: () => import('@/views/document/exchange/send/documentMain.vue'),
                name: 'DocExchangeSendView',
                meta: { title: '发文详情', activeMenu: '/document/exchange' }
            },
            {
                permissions: ['doc:exchange:receive:page'],
                path: 'exchange/receive/view/:id(\\d+)',
                component: () => import('@/views/document/exchange/receive/documentMain.vue'),
                name: 'DocExchangeReceiveView',
                meta: { title: '收文详情', activeMenu: '/document/exchange' }
            },
        ]
    },
    {
        path: '/document',
        hidden: true,
        children: [
            {
                path: 'exchange/common/openFinalFile/:id(\\d+)',
                component: () => import('@/views/document/exchange/common/finalFile.vue'),
                name: 'DocExchangeCommonFinalFile',
                meta: { title: '公文正文' }
            }
        ]
    }
]